﻿@using Microsoft.AspNetCore.Components.Routing
@inherits BaseComponent

<CascadingValue Value="Context">
    <Router AppAssembly="typeof(App).Assembly">
        <Found Context="routeData">
            <RouteView RouteData="@routeData" />
        </Found>
        <NotFound></NotFound>
    </Router>
</CascadingValue>

@code {
    protected override void OnInitialized()
    {
        Context = new Context();
        base.OnInitialized();
    }
}